TouchPoint = class()

function TouchPoint:init(x)
    self.touchPoints = {}
end

function TouchPoint:draw()
    if SettingList.ShowTouchPos then        
        pushStyle()
        stroke(Colour.White)
        strokeWidth(3)
        noFill()       
        for k,v in pairs(self.touchPoints) do
        ellipse(v.x,v.y,100)
            end
        popStyle()
    end
end

function TouchPoint:touched(touch)
    if touch.state == ENDED then
        self.touchPoints[touch.id] = nil
    else
        self.touchPoints[touch.id] = touch
    end
end
